#!/usr/bin/env python
# encoding: utf-8

"""
@author: Jython <ijython@qq.com>
@license: Apache Licence 
@file: hdfs.py
@time: 2017/10/16 5:33
"""

import pyhdfs

fs=pyhdfs.HdfsClient(hosts='192.168.0.116')
f=fs.listdir('/')
print f
f=fs.open('/p/user/user.txt')
tt=f.readlines()
print tt